{include "Public/header"}
	<div class="page_tit">{$title}</div>
	<!-- START CONFIG_FORM -->
	<form method="POST" action="">
	{if isset($_GET['id'])}
	<input type="hidden" name="id" value="{:intval($_GET['id'])}" />
	{/if}
		<div class="form2">
			<dl class="lineD">
				<dt>
					<font color="red">*</font>所属品牌：
				</dt>
				<dd>
					<select name="car_id">
					{foreach $car_list as $v}
					<option value="{$v['id']}" {if isset($info)&&$info['car_id']==$v['id']}selected{/if}>{$v['name']}</option>
					{/foreach}
					</select>
				</dd>
			</dl>
			<dl class="lineD">
				<dt>
					<font color="red">*</font>车型：
				</dt>
				<dd>
					<input name="name" maxlength="50" type="text" value="{$info['name']|''}" class="s-big-txt">
				</dd>
			</dl>
			<dl class="lineD">
				<dt>
					<font color="red">*</font>排序：
				</dt>
				<dd>
					<input name="sort" maxlength="5" type="text" value="{$info['sort']|'50'}" class="small-s-txt">
					<font color="red">*</font>排序按照升序进行排列
				</dd>
			</dl>
			<div class="page_btm">
				<input type="submit" class="btn_b" value="保存"  />
			</div>
		</div>
	</form>
	<!-- END CONFIG_FORM -->
</div>
<script type="text/javascript">
$(function(){
	$("form").validate({
		rules : {
			name: {
				required : true,
				rangelength : [ 1, 50 ]
			},
			sort : {
				required:true,
				digits : true
			}
		},
		messages:{
			name:{
				required:"车型必须填写",
				rangelength:"车型必须在1-50个字之间"
			},
			sort:{
				required:"排序必须填写",
				digits:"排序必须为数字"
			}
		}
	});
});
</script>
</html>